package com.example.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.auth.entity.SysPermissionEntity;
import com.example.auth.mapper.SysPermissionMapper;
import com.example.auth.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 资源
 *
 * @author yang
 * @date 2021-08-23 23:45:04
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermissionEntity>
    implements SysPermissionService {
  @Autowired private SysPermissionMapper sysPermissionMapper;

  @Override
  public List<SysPermissionEntity> listPermissionsByRoles(List<String> roleIds) {
    return sysPermissionMapper.listPermissionsByRoles(roleIds);
  }
}
